import Layout from '@/layout'

const configRouter = [
  // 个人信息
  {
    path: '/configuration/information',
    component: Layout,
    name: 'information',
    // alwaysShow: true,
    // hidden:true,
    meta: { title: '个人信息', icon: 'el-icon-s-help' },
    children: [
      {
        path: 'accont',
        name: 'accont',
        component: () => import('@/views/configuration/information/accont'),
        meta: { title: '我的账号', icon: 'form' }
      },
    ]
  },
  // 组织管理
  {
    path: '/configuration/organization',
    component: Layout,
    name: 'organization',
    alwaysShow: true,
    meta: { title: '组织管理', icon: 'el-icon-s-help' },
    children: [
      {
        path: 'post',
        name: 'post',
        component: () => import('@/views/configuration/organization/post'),
        meta: { title: '岗位管理', icon: 'form' }
      },
      {
        path: 'organization',
        name: 'organization',
        component: () => import('@/views/configuration/organization/organization'),
        meta: { title: '组织管理', icon: 'form' }
      },
      {
        path: 'account',
        name: 'account',
        component: () => import('@/views/configuration/organization/account'),
        meta: { title: '账号管理', icon: 'form' }
      }
    ]
  },
  // 系统配置 
  {
    path: '/configuration/system',
    component: Layout,
    name: 'system',
    alwaysShow: true,
    meta: { title: '系统配置', icon: 'el-icon-s-help' },
    children: [
      {
        path: 'Classification',
        name: 'Classification',
        component: () => import('@/views/configuration/system/Classification'),
        meta: { title: '隐患分类', icon: 'form' }
      },
      {
        path: 'app',
        name: 'app',
        component: () => import('@/views/configuration/system/app'),
        meta: { title: 'app下载', icon: 'form' }
      },
      {
        path: 'map',
        name: 'map',
        component: () => import('@/views/configuration/system/map'),
        meta: { title: '地图管理', icon: 'form' }
      },
    ]
  }
]

export default configRouter